//
//  PACircleHeadImage.m
//  PAMobileWallet
//
//  Created by Pay_SMP002 on 13-7-10.
//  Copyright (c) 2013年 平安付. All rights reserved.
//

#import "PACircleHeadImage.h"

@interface PACircleHeadImage ()

@end

@implementation PACircleHeadImage

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        self.backgroundColor = [UIColor clearColor];

        UIImageView *bgImageView = [[UIImageView alloc] initWithFrame:self.bounds];
        bgImageView.image = [UIImage imageNamed:@"account_face.png"];
        [self addSubview:bgImageView];

        headImageView = [[EGOImageView alloc] initWithFrame:self.bounds ];
        // headImageView.image = [UIImage imageNamed:@"string"];
        [self addSubview:headImageView];

        control = [[UIControl alloc] initWithFrame:self.bounds];
        [control addTarget:self action:@selector(buttonActive:) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:control];
    }
    return self;
}

- (void)setHeadImage:(UIImage *)image {
    headImageView.image = image;
}

- (void)setHeadImageURL:(NSURL *)imageurl {
    
}

- (void)buttonActive:(id)sender {
    
}

@end
